Skip to main content

All Sets

All Sets

This script returns all the Set structs.

Note: This will eventually be long

Returns: [Golazos.SetData] - A list of all the Set structs.

import Golazos from 0xGOLAZOSADDRESS

pub fun main(): [Golazos.SetData] {
let sets: [Golazos.SetData] = []
var id: UInt64 = 1
// Note < , as nextSetID has not yet been used
while id < Golazos.nextSetID {
sets.append(Golazos.getSetData(id: id)!)
id = id + 1
}
return sets
}